<?php
if(count($this->items)) {
    foreach($this->items as $item) {
        echo $this->partial('partials/home-item.phtml', array('item' => $item));
    }
}
else {
    echo '<div class="itemDetail"></div>';
}
?>